import request from '../common/request.js';

// 获取首页列表数据
export function getNftseriesList(data) {
	return request({
		url: '/casting/nftseries/findAll',
		method: 'post',
		data
	})
}

// 获取首页发布藏品列表
export function getCastingCollList(data) {
	return request({
		url: '/casting/nftseries/castingCollList',
		method: 'post',
		data
	})
}

// 藏品分类信息-查询
export function getNfttypeList(data) {
	return request({
		url: '/cdwjs/nfttype/list',
		method: 'post',
		data
	})
}

// 中签记录管理 分页查询
export function getNfttypedrawLogList(data) {
	return request({
		url: '/apply/nftapply/drawLogList',
		method: 'post',
		data
	})
}

// 用户未读消息
export function getMsgIsRead(data) {
	return request({
		url: '/cdwjs/nftusermsg/getMsg',
		method: 'post',
		data
	})
}

// 获取藏品管理数据
export function getfindCastingList(data) {
	return request({
		url: '/casting/nftseries/findCasting',
		method: 'post',
		data
	})
}

// 文章资讯信息-分页查询
export function getSelectedContent(data) {
	return request({
		url: '/cdwjs/nftarticle/list',
		method: 'post',
		data
	})
}

// 文章资讯信息-分页查询
export function getNewsInfo(data) {
	return request({
		url:`/cdwjs/nftarticle/get/${data.id}`,
		method: 'get',
		data
	})
}

//藏品管理-按系列查询列表
export function getfindBySeriesList(data) {
	return request({
		url: '/casting/nftseries/findBySeries',
		method: 'post',
		data
	})
}
// 立即抢购
export function submitOrder(data) {
	return request({
		url: '/order/nftorder/submitOrder',
		method: 'post',
		data
	})
}

// 获取库存
export function getStock(data) {
	return request({
		url: '/casting/nftseries/getStock',
		method: 'post',
		data
	})
}

// 订单详情
export function getOrderDetail(data) {
	return request({
		url: '/order/nftorder/getOrderDetail/v2',
		method: 'post',
		data
	})
}

// 订单详情
export function getByOrderNo(data) {
	return request({
		url: '/order/nftorder/getByOrderNo',
		method: 'post',
		data
	})
}

// 抢购抢购订单支付
export function orderPay(data) {
	return request({
		url: '/pay/order/pay',
		method: 'post',
		data
	})
}

// 支付宝支付
export function aliPayOrder(data) {
	return request({
		url: '/pay/aliCallback',
		method: 'post',
		data
	})
}

// 领取空投
export function joinAirdrop(data) {
	return request({
		url: '/order/nftorder/joinAirdrop',
		method: 'post',
		data
	})
}

//查询订单是否生成
export function getIsCreateOrder(data){
	return request({
		url: '/order/nftorder/getIsCreateOrder',
		method: 'post',
		data
	})
}

//抢购藏品列表 分页查询
export function getnftapplylist(data){
	return request({
		url: '/apply/nftapply/coll/list',
		method: 'post',
		data
	})
}

//抢购藏品信息-id查询
export function getnftapplyDetails(data){
	return request({
		url:`/apply/nftapply/get/${data.id}`,
		method: 'get',
		data
	})
}

//抢购藏品信息-id查询
export function getnftapplyInfo(data){
	return request({
		url:`/apply/nftapply/get/info/${data.id}`,
		method: 'get',
		data
	})
}

//抢购订单下单
export function nftapplyOrderAdd(data){
	return request({
		url:`/apply/nftapply/order/add`,
		method: 'post',
		data
	})
}

//发售
//系列列表
export function getSeriesCollList(data){
	return request({
		url:`/casting/nftseries/seriesCollList`,
		method: 'post',
		data
	})
}
//系列列表
export function getSeriesCollInfo(data){
	return request({
		url:`/casting/nftseries/seriesCollInfo`,
		method: 'post',
		data
	})
}

//系列列表
export function getFindSeries(data){
	return request({
		url:`/casting/nftseries/findSeries`,
		method: 'post',
		data
	})
}

//预售列表 分页查询
export function getGoods_notice(data){
	return request({
		url:`/casting/nftseries/presaleList`,
		method: 'post',
		data
	})
}

//转售
//转售市场挂单信息-分页查询
export function getNftresalepaying(data){
	return request({
		url:`/cdwjs/nftresalepaying/list`,
		method: 'post',
		data
	})
}

export function nftresaleorders(data){
	return request({
		url:`/cdwjs/bank/nftresaleorder/get/${data.id}`,
		method: 'get',
		data
	})
}

export function resaleOrderPay(data){
	return request({
		url:`/pay/resaleOrder/pay`,
		method: 'post',
		data
	})
}

//banner查询
export function getBannerList(data){
	return request({
		url:`/cdwjs/bank/nftbanner/list`,
		method: 'post',
		data
	})
}

//查询跳转小程序配置参数
export function getWeixinConfig(data){
	return request({
		url:`/apply/nftapply/weixin`,
		method: 'post',
		data
	})
}


//网站文章列表-分页查询
export function getlistArticle(data){
	return request({
		url:`/appConfig/listArticle`,
		method: 'get',
		data
	})
}

//查询文章详情-id查询
export function getArticleDetails(data){
	return request({
		url:`/appConfig/getArticle`,
		method: 'get',
		data
	})
}

//藏品行情信息-分页查询
export function getquotationList(data){
	return request({
		url:`/cdwjs/bank/nftpricelog/openPrice/list`,
		method: 'post',
		data
	})
}

//转售市场开闭市信息查询
export function getMarketInfo(data){
	return request({
		url:`/cdwjs/nftresalepaying/getInfo`,
		method: 'post',
		data
	})
}

// 抢购计划管理-分页查询
export function exapplyplanList(data){
	return request({
		url:`/subscribe/exapplyplan/list`,
		method: 'post',
		data
	})
}

// 抢购计划管理-id查询
export function exapplyplanGet(id){
	return request({
		url:`/subscribe/exapplyplan/get/${id}`,
		method: 'get'
	})
}

// 抢购订单表-下单抢购
export function exapplyorderApplyOrder(data){
	return request({
		url:`/subscribe/exapplyorder/applyOrder`,
		method: 'post',
		data
	})
}

// 抢购订单表-id查询
export function exapplyorderGet(id){
	return request({
		url:`/subscribe/exapplyorder/get/${id}`,
		method: 'get'
	})
}

// 抢购订单表-分页查询
export function exapplyorderList(data){
	return request({
		url:`/subscribe/exapplyorder/list`,
		method: 'post',
		data
	})
}

// 抢购列表查询接口
export function rushBuyList(data){
	return request({
		url:`/subscribe/exapplyorder/rushBuyList`,
		method: 'post',
		data
	})
}

// 抢购接口
export function rushBuy(data){
	return request({
		url:`/subscribe/exapplyorder/rushBuy`,
		method: 'post',
		data
	})
}

// 用户仓单资产表-分页查询
export function exuserbillassetsList(data){
	return request({
		url:`/subscribe/exuserbillassets/list`,
		method: 'post',
		data
	})
}

// 获取首页行情数据
export function klinevtwoIndex(data){
	return request({
		url:`/klinevtwo/index`,
		method: 'get',
		data
	})
}

// 新首页数据排序-查询
export function klinevtwoDataSort(data){
	return request({
		url:`/klinevtwo/dataSort`,
		method: 'post',
		data
	})
}

// 新首页数据排序-查询
export function newHistory(data){
	return request({
		url:`/newHistory`,
		method: 'get',
		data
	})
}

// 高级转让大厅-委托下单
export function tradesUserEntrustOrder(data){
	return request({
		url:`/trades/user/entrustOrder`,
		method: 'post',
		data
	})
}

// 高级转让大厅-B票转让
export function tradesUserSellTicket(data){
	return request({
		url:`/trades/user/sellTicket`,
		method: 'post',
		data
	})
}

// 初始化高级转让大厅数据
export function klinevtwoTradingview(data){
	return request({
		url:`/klinevtwo/tradingview`,
		method: 'get',
		data
	})
}

// 查询委托转让(需要推送才可成功)
export function entrustUserRlist(data){
	return request({
		url:`/entrust/user/rlist`,
		method: 'post',
		data
	})
}

// 个人中心我的委托查询
export function entrustUserList(data){
	return request({
		url:`/entrust/user/list`,
		method: 'post',
		data
	})
}

// 个人中心我的委托撤单
export function userCancelExEntrust(data){
	return request({
		url:`/trades/user/cancelExEntrust`,
		method: 'post',
		data
	})
}


// 查询积分信息
export function getByBillCode(data){
	return request({
		url:`/subscribe/exwarehousereceipt/getByBillCode`,
		method: 'post',
		data
	})
}

// 查询持有数
export function possessCount(data){
	return request({
		url:`/subscribe/exuserbillassets/possessCount`,
		method: 'post',
		data
	})
}

// 查询积分手续费
export function getSellFeeRate(data){
	return request({
		url:`/entrust/getSellFeeRate`,
		method: 'post',
		data
	})
}

// 查询积分手续费
export function getFeeRate(data){
	return request({
		url:`/entrust/getFeeRate`,
		method: 'post',
		data
	})
}

// 用户仓单资产明细表-分页查询
export function exuserbillassetsrecordList(data) {
	return request({
		url: '/subscribe/exuserbillassetsrecord/list',
		method: 'post',
		data
	})
}

